/*
 * Copyright (c) 2006, 2021, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

/**
 * <p>Project: javase - Student
 * <p>Powered by webrx On 2021-12-28 09:38:52
 * <p>Created by IntelliJ IDEA
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public record Student(int id, String name, int age) {

    public Student {
        id = 5;
        name = "张三";
        age = 88;
    }

    public Student(int id) {
        this(id, "jack", 22);
    }

    static int AGE = 15;

    public int pf(int i) {
        return i * i;
    }
}
